{include file=top.html}
<div id="page-store" class="page-store w">
		<!--common bar start-->
		<div class="bar-wrap">
			<div class="top-bar"><a href="javascript:pageBack();" class="pageback"><span></span></a>
		<div class="store-search">
			<form id="store-search-form">
				<input name="keyword" type="text" class="kw" placeholder="搜索本店的商品"/>
				<input type="hidden" name="app" value="store" />
				<input type="hidden" name="act" value="search" />
				<input type="hidden" name="id" value="{$store.store_id}" />
				<p><a href="javascript:;" onClick="$('#store-search-form').submit();" class="submit"></a></p>
			</form>
		</div>
		<a class="page-store-more J_show_cate"><span></span></a> </div>
		</div>
		<!--common bar end-->
		<div class="store-info"> 
        	<div class="store-index-slide">
            	<div id="slides" class="scroller">
                	<!--{foreach from=$slides item=slide name=fe_slide}-->
                    <!--{if $slide.ad_image_url}-->
    				<a href="{$slide.ad_link_url}" class="store-banner"><img src="{$slide.ad_image_url}" /></a>
                    <!--{/if}-->
                    <!--{/foreach}-->
            	</div>
            </div>
            <script>
			$(function() {
				if($('#slides').children('a').length>1){
					$('#slides').slidesjs({
						width: 320,
						height: 120,
						navigation: false,
						play: {
							auto: true
						}
					});
				}
			});
		  </script>
            <div class="d-info w-full clearfix">
                <h3 class="float-left"><a href="{url app=store&id=$store.store_id}"><img src="{$store.store_logo}" /></a></h3>
                <div class="name-and-credit float-left">
                    <p class="mt10 name"><a href="{url app=store&id=$store.store_id}">{$store.store_name}</a></p>
                    <p><!--{if $store.credit_value ge 0}--><img src="{$store.credit_image}" alt="" /><!--{/if}--></p>
                </div>
                <p class="collect-btn float-right"><a  href="javascript:collect_store({$store.store_id})">收藏店铺</a></p>
            </div>
	</div>
	<ul class="store-statistic webkit-box clearfix">
		<li>
			<dl>
				<dt><b>{$store.goods_count}</b></dt>
				<dd><span>商品</span></dd>
			</dl>
		</li>
		<li>
			<dl>
				<dt><b>{$store_static.new_count}</b></dt>
				<dd><span>上新</span></dd>
			</dl>
		</li>
		<li>
			<dl>
				<dt><b>{$store_static.order_count}</b></dt>
				<dd><span>成交</span></dd>
			</dl>
		</li>
		<li>
			<dl style="border:0px;">
				<dt><b>{$store.praise_rate}%</b></dt>
				<dd><span>好评率</span></dd>
			</dl>
		</li>
	</ul>
    <!--{if $ad1.ad_image_url}-->
	<div class="full-banner"> <a href="{$ad1.ad_link_url}"><img  src="{$ad1.ad_image_url}"/></a> </div>
    <!--{/if}-->
	<!--{if $recommended_goods}-->
    <div class="rec-goods goods-model-si">
		<h3>{$lang.recommended_goods}</h3>
		<ul class="clearfix">
			<!--{foreach from=$recommended_goods item=rg name=fe_rg}--> 
			<li class="clearfix"> 
				<!--{foreach from=$rg item=rgoods name=fe_rgoods}-->
				<div class="item">
					<div {if $smarty.foreach.fe_rgoods.iteration % 2 eq 0}style="margin-left:5px;margin-right:0rem;"{/if} class="wrap">
                    	<div class="wrap2">
                            <div class="pic"><a href="{url app=goods&id=$rgoods.goods_id}"><img src="{$rgoods.default_image}" /></a></div>
                            <h3><a href="{url app=goods&id=$rgoods.goods_id}">{$rgoods.goods_name|escape}</a></h3>
                            <p>￥{$rgoods.price}</p>
                        </div>
					</div>
				</div>
				<!--{/foreach}--> 
			</li>
			<!--{/foreach}-->
		</ul>
	</div>
	<!--{/if}--> 
	<!--{if $new_goods}-->
	<div class="new-goods goods-model-si">
		<h3>{$lang.new_goods}</h3>
		<ul class="clearfix">
			<!--{foreach from=$new_goods item=ng name=fe_ng}-->
			<li class="clearfix"> 
				<!--{foreach from=$ng item=ngoods name=fe_ngoods}-->
				<div class="item">
					<div {if $smarty.foreach.fe_ngoods.iteration % 2 eq 0}style="margin-left:5px;margin-right:0rem;"{/if} class="wrap">
                    	<div class="wrap2">
                            <div class="pic"><a href="{url app=goods&id=$ngoods.goods_id}"><img src="{$ngoods.default_image}" /></a></div>
                            <h3><a href="{url app=goods&id=$ngoods.goods_id}">{$ngoods.goods_name|escape}</a></h3>
                            <p>￥{$ngoods.price}</p>
                        </div>
					</div>
				</div>
				<!--{/foreach}--> 
			</li>
			<!--{/foreach}-->
		</ul>
	</div>
	<!--{/if}--> 
	<!--{if $sales_goods}-->
	<div class="hot-goods goods-model-si">
		<h3>热卖</h3>
		<ul class="clearfix">
			<!--{foreach from=$sales_goods item=sg name=fe_sg}-->
			<li class="clearfix"> 
				<!--{foreach from=$sg item=sgoods name=fe_sgoods}-->
				<div class="item">
					<div {if $smarty.foreach.fe_sgoods.iteration % 2 eq 0}style="margin-left:5px;margin-right:0rem;"{/if} class="wrap">
                    	<div class="wrap2">
                            <div class="pic"><a href="{url app=goods&id=$sgoods.goods_id}"><img src="{$sgoods.default_image}" /></a></div>
                            <h3><a href="{url app=goods&id=$sgoods.goods_id}">{$sgoods.goods_name|escape}</a></h3>
                            <p>￥{$sgoods.price}</p>
                        </div>
					</div>
				</div>
				<!--{/foreach}--> 
			</li>
			<!--{/foreach}-->
		</ul>
	</div>
	<!--{/if}--> 
	<!--{if $hot_goods}-->
	<div class="new-goods goods-model-si">
		<h3>人气</h3>
		<ul class="clearfix">
			<!--{foreach from=$hot_goods item=hg name=fe_hg}-->
			<li class="clearfix"> 
				<!--{foreach from=$hg item=hgoods name=fe_hgoods}-->
				<div class="item">
					<div {if $smarty.foreach.fe_hgoods.iteration % 2 eq 0}style="margin-left:5px;margin-right:0rem;"{/if} class="wrap">
                    	<div class="wrap2">
                            <div class="pic"><a href="{url app=goods&id=$hgoods.goods_id}"><img src="{$hgoods.default_image}" /></a></div>
                            <h3><a href="{url app=goods&id=$hgoods.goods_id}">{$hgoods.goods_name|escape}</a></h3>
                            <p>￥{$hgoods.price}</p>
                        </div>
					</div>
				</div>
				<!--{/foreach}--> 
			</li>
			<!--{/foreach}-->
		</ul>
	</div>
	<!--{/if}-->
	<div class="view-all mb10"> <a href="{url app=store&act=search&id=$store.store_id}"><i></i><span>全部商品</span></a> </div>
</div>
<div id="pageslide" class="J_masker"></div>
<div id="cate-model" class="J_hide_box">
	<div class="wrap screen-height">
        <ul class="store-cate J_store-cate">
            <li><a href="{url app=store&id=$store.store_id&act=search}">{$lang.all_goods}</a></li>
            <!--{foreach from=$store.store_gcates item=gcategory}--> 
            <li> <a href="javascript:;">{$gcategory.value|escape}<i class="icon-open"></i></a>
                <ul class="list">
                    <!--{foreach from=$gcategory.children item=child_gcategory}-->
                    <li><a href="{url app=store&id=$store.store_id&act=search&cate_id=$child_gcategory.id}">{$child_gcategory.value|escape}</a></li>
                    <!--{/foreach}-->
                </ul>
            </li>
            <!--{/foreach}-->
        </ul>
        <p class="close"><a href="javascript:$.pageslide.close()"></a></p>
    </div>
</div>
<script type="text/javascript">
		$('.J_store-cate li a').click(function(){
			$(this).parent('li').find('.list').toggle();
			var c = $(this).parent('li').find('i').attr('class');
			if(c == 'icon-open')
			{
				$(this).parent('li').find('i').attr('class','icon-close');
			}
			else
			{
				$(this).parent('li').find('i').attr('class','icon-open');
			}
		});
		var closeBtnTop =  window.screen.availHeight/2-50;
		$('#cate-model .close').css('top',closeBtnTop+'px');
		$('#cate-model .close').click(function(){
			closePageSlide();
		});
		$('.J_masker').click(function(){
			closePageSlide();
		});
		$('.J_show_cate').click(function(){
			$('.J_masker').animate({right:'0'});
			$('.J_hide_box').show().animate({right:'0'},800);
		});
		function closePageSlide()
		{
			$('.J_masker').animate({right:'-1699px'});
			$('.J_hide_box').animate({right:'-100%'},800).hide();
		}
	</script>
{include file=footer.html} 